# Contributor: Taner Tas <taner76@gmail.com>
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=lightdm-gtk-greeter
pkgver=2.0.7
pkgrel=0
pkgdesc="Gtk based greeter for lightdm."
url="https://launchpad.net/lightdm-gtk-greeter"
arch="all !s390x !mips !mips64" # Limited by librsvg
license="GPL-3.0-or-later"
depends="lightdm"
makedepends="gtk+3.0-dev lightdm-dev exo exo-dev"
subpackages="$pkgname-lang $pkgname-doc"
source="https://launchpad.net/lightdm-gtk-greeter/${pkgver%.?}/$pkgver/+download/lightdm-gtk-greeter-$pkgver.tar.gz"
options="!check"

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--sbindir=/usr/bin \
		--with-libxklavier \
		--enable-kill-on-sigterm \
		--disable-libido \
		--disable-libindicator \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="62ad8d522db9aeea7bd0acc76c989a1d39e8be619847b294048530b2dfbebf5a5982f84daf1a5f49b0a8a7abe3234e1571fb5d4f5429b02867801015f30e4944  lightdm-gtk-greeter-2.0.7.tar.gz"
